from django.shortcuts import render, HttpResponse
from .models import Category, Article


def index(request):
    # category = Category(name='最新')
    # category.save()
    # article = Article(title='第一篇文章', content='第一篇文章内容')
    # article.category =category
    # article.save()

    # article = Article.objects.get(pk=1)
    # print(article.category.name)
    return HttpResponse('success')